<ul id="main-nav">  
    <li>
        <a href="{{$APP_BASE_URL}}" class="nav-top-item no-submenu {{if $menu[0]=='controlpanel'}}current{{/if}}">
            Control Panel
        </a>       
    </li>
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='usergroup'}}current{{/if}}">
        Users & Groups
        </a>
        <ul>
            {{p name='new_user' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/new-user" class="{{if $menu[1]=='newuser'}}current{{/if}}">New User</a></li>{{/p}}
            {{p name='see_user' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/manage-user" class="{{if $menu[1]=='manageuser'}}current{{/if}}">Manage Users </a></li>{{/p}}
            {{p name='see_group' module='user'}}<li><a href="{{$APP_BASE_URL}}user/admin/manage-group" class="{{if $menu[1]=='managegroup'}}current{{/if}}"> Manage Groups</a></li>{{/p}}
            
            {{p name='see_permission' module='permission'}}<li><a href="{{$APP_BASE_URL}}permission/admin/manager" class="{{if $menu[1]=='managepermission'}}current{{/if}}"> Manage Permissions</a></li>{{/p}}
     
        </ul>
    </li>
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='content'}}current{{/if}}">
        Content
        </a>
        <ul>
            {{p name='new_content' module='content'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}content/admin/new-content" class="{{if $menu[1]=='newcontent'}}current{{/if}}">New Content</a></li>{{/p}}
            {{p name='see_content' module='content'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}content/admin/manage-content" class="{{if $menu[1]=='managecontent'}}current{{/if}}"> Manage Content</a></li>{{/p}}
            
            {{p name='new_category' module='content'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}content/admin/new-category" class="{{if $menu[1]=='newcontentcategory'}}current{{/if}}">New Category</a></li>{{/p}}
            {{p name='see_category' module='content'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}content/admin/manage-category" class="{{if $menu[1]=='managecontentcategory'}}current{{/if}}"> Manage Categories</a></li>{{/p}}
        </ul>
    </li>
    
    

     <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='list'}}current{{/if}}">
        List
        </a>
        <ul>
            <li><a href="{{$APP_BASE_URL}}list/admin/new-list" class="{{if $menu[1]=='newlist'}}current{{/if}}">New List</a></li>
            <li><a href="{{$APP_BASE_URL}}list/admin/manage-list" class="{{if $menu[1]=='managelist'}}current{{/if}}">Manage Lists </a></li>
        </ul>
    </li>
    
     <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='mail'}}current{{/if}}">
        Mails
        </a>
        <ul>
            {{p name='new_newsletter' module='mail'}}<li><a href="{{$APP_BASE_URL}}mail/admin/new-newsletter" class="{{if $menu[1]=='newnewsletter'}}current{{/if}}">New Newsletter</a></li>{{/p}}
            {{p name='see_newsletter' module='mail'}}<li><a href="{{$APP_BASE_URL}}mail/admin/manage-newsletter" class="{{if $menu[1]=='managenewsletter'}}current{{/if}}">Manage Newsletters</a></li>{{/p}}
            {{p name='see_system_mail' module='mail'}}<li><a href="{{$APP_BASE_URL}}mail/admin/manage-system-mail" class="{{if $menu[1]=='managesystemmail'}}current{{/if}}">Manage System Mails</a></li>{{/p}}
            {{p name='see_all_mails' module='mail'}}<li><a href="{{$APP_BASE_URL}}mail/admin/manage-all-mails" class="{{if $menu[1]=='manageallmails'}}current{{/if}}">Manage Sent Mails</a></li>{{/p}}
        </ul>
    </li>
    
    
    
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='product'}}current{{/if}}">
        Products
        </a>
        <ul>
            {{p name='new_product' module='product'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}product/admin/new-product" class="{{if $menu[1]=='newproduct'}}current{{/if}}">New Product</a></li>{{/p}}
            {{p name='see_product' module='product'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}product/admin/manage-product" class="{{if $menu[1]=='manageproduct'}}current{{/if}}"> Manage Product</a></li>{{/p}}
            
            {{p name='new_product' module='product'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}product/admin/new-category" class="{{if $menu[1]=='newproductcategory'}}current{{/if}}">New Category</a></li>{{/p}}
            {{p name='see_product' module='product'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}product/admin/manage-category" class="{{if $menu[1]=='manageproductcategory'}}current{{/if}}"> Manage Categories</a></li>{{/p}}
        </ul>
    </li>
    
   
    
    
    <li> 
        <a href="#" class="nav-top-item {{if $menu[0]=='others'}}current{{/if}}">
        Others
        </a>
        <ul>
            {{p name='see_translation' module='language'  expandId='?'}}<li><a href="{{$APP_BASE_URL}}language/translation/manage" class="{{if $menu[1]=='manage-translation'}}current{{/if}}">Manage Translations</a></li>{{/p}}
        </ul>
    </li>
    
</ul> 